﻿using NDF.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace NDF.WebClient.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            this.ViewBag.SystemTitle = SystemEnvironment.SystemTitle;
            return View();
        }


        public ActionResult GetNavMenus()
        {
            var list = new List<object>()
            { 
                new { id = 0, text = "百度一下", iconCls = "icon-hamburg-docs", attributes = new { href = "http://www.baidu.com", iniframe = true, closable = true, refreshable = true, selected = true } },
                new { id = 1, text = "测试菜单 1", iconCls = "icon-hamburg-docs" },
                new { id = 2, text = "测试菜单 2", iconCls = "icon-standard-accept" },
                new { id = 3, text = "测试菜单 3", iconCls = "icon-standard-anchor" },
                new { id = 4, text = "测试菜单 4", iconCls = "icon-standard-application", disabled = true },
                new { id = 5, text = "测试菜单 5", iconCls = "icon-standard-application-add", disabled = true },
                new { id = 6, text = "测试菜单 6", iconCls = "icon-standard-add", disabled = true },
                new { id = 10, text = "扩展 API 文档", iconCls = "icon-standard-application-cascade" },
                new { id = 11, text = "演示 DEMO", iconCls = "icon-hamburg-product-design" }
            };
            return this.Json(list, JsonRequestBehavior.AllowGet);
        }


        public ActionResult GetModuleMenus()
        {
            return this.Json(new List<object>(), JsonRequestBehavior.AllowGet);
        }

        public ActionResult GetFavoritesMenus()
        {
            return this.Json(new List<object>(), JsonRequestBehavior.AllowGet);
        }
    }
}